/*
 * @Description:
 * @Version: 1.0
 * @Autor: ljz
 * @Date: 2022-06-01 15:04:39
 * @LastEditors: ljz
 * @LastEditTime: 2022-06-18 09:53:30
 */
import request from "@/utils/request";

// 全文搜索接口
export function getOninion(params) {
    return request({
        url: "/env/datav/opinion/datav/search",
        method: "get",
        params,
    });
}

//舆情主题
export function getOninionTheme(params) {
    return request({
        url: "/opinion/datav/info_topic",
        method: "get",
        params,
    });
}

//今日/本周报道总量
export function getOninionReportTotal(params) {
    return request({
        url: "/opinion/datav/report_total",
        method: "get",
        params,
    });
}

//信息来源分布图
export function getOninionInfoSource(params) {
    return request({
        url: "/opinion/datav/info_sources",
        method: "get",
        params,
    });
}

//总信息量走势图
export function getOninionInfoTotal(params) {
    return request({
        url: "/opinion/datav/info_total1",
        method: "get",
        params,
    });
}

//今日舆情概览
export function getTodaySentimentNews(params) {
    return request({
        url: "/opinion/datav/today_sentiment_news",
        method: "get",
        params,
    });
}

//今日敏感信息列表
export function getTodaySensitivity(params) {
    return request({
        url: "/opinion/datav/today_sensitivity",
        method: "get",
        params,
    });
}

//本周热评Top10
export function getHotReview(params) {
    return request({
        url: "/opinion/datav/hot_review",
        method: "get",
        params,
    });
}

//本周高赞Top10
export function getHighPraise(params) {
    return request({
        url: "/opinion/datav/high_praise",
        method: "get",
        params,
    });
}

//今日活跃网站Top10
export function getActiveSite(params) {
    return request({
        url: "/opinion/datav/active_site",
        method: "get",
        params,
    });
}

// 情感分析
export function getSentimentAnalysis(query) {
    return request({
        url: "opinion/datav/sentiment_analysis",
        method: "get",
        params: query,
    });
}

// 情感分析走势
export function getSentimentAnalysisTrends(query) {
    return request({
        url: "opinion/datav/sentiment_analysis_trends",
        method: "get",
        params: query,
    });
}

// 关键词云
export function getKeywordCloud(query) {
    return request({
        url: "opinion/datav/keyword_cloud",
        method: "get",
        params: query,
    });
}

// 全网敏感信息
export function getAllSensitivity(query) {
    return request({
        url: "opinion/datav/all_sensitivity",
        method: "get",
        params: query,
    });
}

// 铁山港敏感信息
export function getTsgSensitivity(query) {
    return request({
        url: "opinion/datav/tsg_sensitivity",
        method: "get",
        params: query,
    });
}

// 全文搜索-专题列表
export function getSentimentSubject(query) {
    return request({
        url: "opinion/datav/sentiment_subject",
        method: "get",
        params: query,
    });
}
